package com.sc.nft.enums;


import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum MiniMallMemberEquityEnums {
    GOLD(1,"金角"),
    SILVER(2,"银角"),

    ;
    @EnumValue
    private int code;
    private String description;





    public static MiniMallMemberEquityEnums getEnumByBlurName(String name) {
        for (MiniMallMemberEquityEnums value : MiniMallMemberEquityEnums.values()) {
            if (name.contains(value.getDescription())) {
                return value;
            }
        }
        return null;
    }
}
